/*
FuStA: FuDePAN's Statistical Analysis package.
    Copyright (C) 2011  Daniel Gutson, FuDePAN

    This file is part of FuStA Minimalistic Library.

    FuStA is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    FuStA is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with FuStA.  If not, see <http://www.gnu.org/licenses/>.

    This is an example file.
*/

#include <iostream>
#include "fusta.h"

using namespace std;
using namespace fusta;

int main()
{
    StatSerie<int> serie;

    serie.addImplementation(new OutputSerie<int>());
    StatSummary<int>& summary = serie.addImplementation(new StatSummary<int>());
    serie.addImplementation(new StatR<int>("output.r"));

    serie
        .addNumber(1)
        .addNumber(2)
        .addNumber(3)
        .addNumber(4)
    ;

    cout << "Average: " << summary.average() << endl;

    return 0;
}

